package com.tdrc.shop.beans;

/**
 * @author dpf
 * @version 1.0
 * @date 2020-4-28 11:17
 * @instruction ...
 */
public class Good {
    private Integer goodId;
    private String goodName;
    private Integer quantity;
    private Integer version;
    public Good(){

    }

    public Good(Integer goodId, String goodName, Integer quantity, Integer version) {
        this.goodId = goodId;
        this.goodName = goodName;
        this.quantity = quantity;
        this.version = version;
    }
    public Good(Integer goodId,Integer version){
        this.goodId = goodId;
        this.version=version;

    }
    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
